package my.app.taxi;

import java.util.ArrayList;

import com.google.android.maps.GeoPoint;

public class Taxi {
	
	private Integer id = null;
	private GeoPoint geoPoint = null;
	private String LicenceTag = null;
	private String icon = null;
	private Double rating = null;
	private Integer ratingCount = null;
	private String tel = null;
	private String address = null;
	private ArrayList<String> services = null;
	private String information = null;
	private String carModel = null;
	private Double distance = null;
	private String compIcon = null;
	private String comp_name = null;
	private Integer comp_id = null;
	
	public Taxi() {
		
	}
	
	public Taxi(String lat, String lon) {
		double latt = Double.parseDouble(lat);
        double lngt = Double.parseDouble(lon);
        
        setGeoPoint(new GeoPoint((int) (latt * 1E6),(int) (lngt * 1E6)));
        setLicenceTag("34-"+lat+"-"+lon);
		
	}

	
	
	
	
	//Setters and Getter..
	public void setGeoPoint(GeoPoint geoPoint) {
		this.geoPoint = geoPoint;
	}

	public GeoPoint getGeoPoint() {
		return geoPoint;
	}

	public void setLicenceTag(String licenceTag) {
		LicenceTag = licenceTag;
	}

	public String getLicenceTag() {
		return LicenceTag;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getIcon() {
		return icon;
	}

	public void setRating(Double rating) {
		this.rating = rating;
	}

	public Double getRating() {
		return rating;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getTel() {
		return tel;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAddress() {
		return address;
	}

	public void setServices(ArrayList<String> services) {
		this.services = services;
	}

	public ArrayList<String> getServices() {
		return services;
	}

	public void setInformation(String information) {
		this.information = information;
	}

	public String getInformation() {
		return information;
	}

	public void setCarModel(String carModel) {
		this.carModel = carModel;
	}

	public String getCarModel() {
		return carModel;
	}

	public void setDistance(Double distance) {
		this.distance = distance;
	}

	public Double getDistance() {
		return distance;
	}

	public void setCompIcon(String compIcon) {
		this.compIcon = compIcon;
	}

	public String getCompIcon() {
		return compIcon;
	}

	public void setRatingCount(Integer ratingCount) {
		this.ratingCount = ratingCount;
	}

	public Integer getRatingCount() {
		return ratingCount;
	}

	public void setComp_name(String comp_name) {
		this.comp_name = comp_name;
	}

	public String getComp_name() {
		return comp_name;
	}

	public void setComp_id(Integer comp_id) {
		this.comp_id = comp_id;
	}

	public Integer getComp_id() {
		return comp_id;
	}

}
